import MarketingApi from '@/config/server/api/marketing.js'
import toolApi from '@/config/server/api/tool.js'

function backgroundList(info) {
  return MarketingApi.bgMap.backgroundList.fetch(info)
}

function backgroundOffList(info) {
  return MarketingApi.bgMap.backgroundOffList.fetch(info)
}

function backgroundSave(info) {
  return MarketingApi.bgMap.backgroundSave.fetch(info)
}

function updateStateById(info) {
  return MarketingApi.bgMap.updateStateById.fetch(info)
}

function updateById(info) {
  return MarketingApi.bgMap.updateById.fetch(info)
}

function updateSortById(info) {
  return MarketingApi.bgMap.updateSortById.fetch(info)
}

function shortSrticleSave(info) {
  return MarketingApi.shortSrticle.shortSrticleSave.fetch(info)
}

function shortSrticleDeleteById(info) {
  return MarketingApi.shortSrticle.shortSrticleDeleteById.fetch(info)
}

function shortSrticleUpdateById(info) {
  return MarketingApi.shortSrticle.shortSrticleUpdateById.fetch(info)
}

function shortSrticleGetById(info) {
  return MarketingApi.shortSrticle.shortSrticleGetById.fetch(info)
}

function shortSrticlePage(info) {
  return MarketingApi.shortSrticle.shortSrticlePage.fetch(info)
}

function shortSrticleUpdateStateById(info) {
  return MarketingApi.shortSrticle.shortSrticleUpdateStateById.fetch(info)
}

function shortStatistics(info) {
  return MarketingApi.shortSrticle.shortStatistics.fetch(info)
}

function pageWeb(info) {
  return MarketingApi.shortSrticle.pageWeb.fetch(info)
}

function unloadFileCanvas(info) {
  return toolApi.unloadFile().fetch(info)
}

function initPageByChangeName(info) {
  return MarketingApi.shortSrticle.initPageByChangeName.fetch(info)
}
function templateList(info) {
  return MarketingApi.bgMap.templateList.fetch(info)
}

function templatePage(info) {
  return MarketingApi.bgMap.templatePage.fetch(info)
}
function templateSave(info) {
  return MarketingApi.bgMap.templateSave.fetch(info)
}
function templateUpdateById(info) {
  return MarketingApi.bgMap.templateUpdateById.fetch(info)
}
function updateShortArticleTemplate(info) {
  return MarketingApi.bgMap.updateShortArticleTemplate.fetch(info)
}
function getTemplateById(info) {
  return MarketingApi.bgMap.getTemplateById.fetch(info)
}
function getTemplatePreview(info) {
  return MarketingApi.bgMap.getTemplatePreview.fetch(info)
}
function getShortArticleSample(info) {
  return MarketingApi.shortSrticle.getShortArticleSample.fetch(info)
}
function buildingPosterGetWebList(info) {
  return MarketingApi.shortSrticle.buildingPosterGetWebList.fetch(info)
}
function buildingPosterCreate(info) {
  return MarketingApi.shortSrticle.buildingPosterCreate.fetch(info)
}
function posterPageList(info) {
  return MarketingApi.shortSrticle.posterPageList.fetch(info)
}
function getBuildingPosterById(info) {
  return MarketingApi.shortSrticle.getBuildingPosterById.fetch(info)
}

function updateBuildingPoster(info) {
  return MarketingApi.shortSrticle.updateBuildingPoster.fetch(info)
}
function shortArticleExportPage(info) {
  return MarketingApi.shortSrticle.shortArticleExportPage.fetch(info)
}
function buildingPosterExportWebList(info) {
  return MarketingApi.shortSrticle.buildingPosterExportWebList.fetch(info)
}
function posterExportList(info) {
  return MarketingApi.shortSrticle.posterExportList.fetch(info)
}
function delBuildingPoster(info) {
  return MarketingApi.shortSrticle.delBuildingPoster.fetch(info)
}

export default {
  backgroundList,
  backgroundOffList,
  backgroundSave,
  updateStateById,
  updateById,
  updateSortById,
  // 短文章
  shortSrticleSave,
  shortSrticleDeleteById,
  shortSrticleUpdateById,
  shortSrticleGetById,
  shortSrticlePage,
  shortSrticleUpdateStateById,
  shortStatistics,
  pageWeb,
  unloadFileCanvas,
  initPageByChangeName,
  templateList,
  templatePage,
  templateSave,
  templateUpdateById,
  updateShortArticleTemplate,
  getTemplateById,
  getTemplatePreview,
  getShortArticleSample,
  buildingPosterGetWebList,
  buildingPosterCreate,
  posterPageList,
  getBuildingPosterById,
  updateBuildingPoster,
  shortArticleExportPage,
  buildingPosterExportWebList,
  posterExportList,
  delBuildingPoster
}
